namespace Examples.UnitTestATM
{
    public class WithdrawStatus
    {
        private readonly string _message;
        private readonly Money _money;

        public WithdrawStatus(string message, Money money)
        {
            _message = message;
            _money = money;
        }

        public Money Amount
        {
            get { return _money; }
        }

        public string Message
        {
            get { return _message; }
        }

        public static WithdrawStatus Complete(Money withdrawnAmount)
        {
            return new WithdrawStatus("Thankyou for your custom", withdrawnAmount);
        }

        public static WithdrawStatus NoFundsAvailable(Money withdrawnAmount)
        {
            return new WithdrawStatus("You don't have sufficent funds for this transaction", withdrawnAmount);
        }

        public static WithdrawStatus InsufficentFundsToComplete(Money withdrawnAmount)
        {
            return new WithdrawStatus("You don't have sufficent funds to complete the transaction. You have been given all you can", withdrawnAmount);
        }
    }
}